Skip to content

Add note about trusting ApplicationArguments data#12746

Merged
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w552593-pssenderinfo
Feb 10, 2026
Merged

Add note about trusting ApplicationArguments data#12746
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w552593-pssenderinfo

Conversation

@sdwheeler
Copy link
Copy Markdown
Collaborator

@sdwheeler sdwheeler commented Feb 10, 2026

PR Summary

Ad note about trusting ApplicationArguments data

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings February 10, 2026 15:42
@sdwheeler sdwheeler changed the title Ad note about trusting ApplicationArguments data Add note about trusting ApplicationArguments data Feb 10, 2026
@learn-build-service-prod

This comment was marked as outdated.

Comment thread reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md Outdated
@learn-build-service-prod

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds security-focused documentation warnings advising that $PSSenderInfo.ApplicationArguments / -ApplicationArguments data is client-supplied and must not be used for authorization/trust decisions.

Changes:

  • Adds [!IMPORTANT] admonitions warning against using ApplicationArguments for security/trust decisions across multiple PowerShell versions.
  • Updates related metadata (ms.date) and normalizes some relative About-topic links.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
reference/7.6/Microsoft.PowerShell.Core/New-PSSessionOption.md Adds IMPORTANT warning under -ApplicationArguments and updates some About links.
reference/7.6/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md Adds IMPORTANT warning under $PSSenderInfo / ApplicationArguments.
reference/7.5/Microsoft.PowerShell.Core/New-PSSessionOption.md Adds IMPORTANT warning under -ApplicationArguments.
reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md Adds IMPORTANT warning under $PSSenderInfo / ApplicationArguments.
reference/7.4/Microsoft.PowerShell.Core/New-PSSessionOption.md Adds IMPORTANT warning under -ApplicationArguments and updates some About links.
reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md Adds IMPORTANT warning and updates metadata.
reference/5.1/Microsoft.PowerShell.Core/New-PSSessionOption.md Adds IMPORTANT warning under -ApplicationArguments.
reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md Adds IMPORTANT warning under $PSSenderInfo / ApplicationArguments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread reference/5.1/Microsoft.PowerShell.Core/New-PSSessionOption.md Outdated
ms.date: 01/18/2026
ms.date: 02/10/2026
no-loc: [Reset, Current, Background, Blink, Bold, Foreground, Formatting, Hidden, Italic, Reset, Reverse, Underline, PSEventArgs, PSEventSubscriber, PSEdition]
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1&WT.mc_id=ps-gethelp
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The online version URL is using view=powershell-5.1 in the 7.4 reference topic, which will send readers to the wrong version of the docs. Please update the querystring to view=powershell-7.4 to match this file's versioned folder.

Suggested change
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-5.1&WT.mc_id=ps-gethelp
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.4&WT.mc_id=ps-gethelp

Copilot uses AI. Check for mistakes.
Comment on lines +276 to +278
> Since this property contains data explicitly provided by the client, using this for security
> decisions could allow attackers to bypass authorization controls. Never use this data for trust
> decisions. Validate all user input when used for other application logic.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added IMPORTANT blockquote lines exceed the repo's markdownlint MD013 line-length limit (100 chars) for non-About topics. Please wrap the blockquote text onto more lines (keeping each quoted line under the limit) to avoid lint failures.

Suggested change
> Since this property contains data explicitly provided by the client, using this for security
> decisions could allow attackers to bypass authorization controls. Never use this data for trust
> decisions. Validate all user input when used for other application logic.
> Since this property contains data explicitly provided by the client, using this
> for security decisions could allow attackers to bypass authorization controls.
> Never use this data for trust decisions. Validate all user input when used for
> other application logic.

Copilot uses AI. Check for mistakes.
Comment on lines +280 to +282
For more information, see [about_Hash_Tables](About/about_Hash_Tables.md),
[about_Session_Configurations](About/about_Session_Configurations.md), and
[about_Automatic_Variables](about/about_Automatic_Variables.md).
[about_Automatic_Variables](About/about_Automatic_Variables.md).
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file still contains a relative link using about/... (lowercase) earlier in the page (for example in the preceding example section). There is no about directory here (only About/), so please update remaining about/... links to About/... to avoid broken links on case-sensitive systems.

Copilot uses AI. Check for mistakes.
Comment on lines +276 to +278
> Since this property contains data explicitly provided by the client, using this for security
> decisions could allow attackers to bypass authorization controls. Never use this data for trust
> decisions. Validate all user input when used for other application logic.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added IMPORTANT blockquote lines exceed the repo's markdownlint MD013 line-length limit (100 chars) for non-About topics. Please wrap the blockquote text onto more lines (keeping each quoted line under the limit) to avoid lint failures.

Suggested change
> Since this property contains data explicitly provided by the client, using this for security
> decisions could allow attackers to bypass authorization controls. Never use this data for trust
> decisions. Validate all user input when used for other application logic.
> Since this property contains data explicitly provided by the client, using this for
> security decisions could allow attackers to bypass authorization controls. Never use
> this data for trust decisions. Validate all user input when used for other
> application logic.

Copilot uses AI. Check for mistakes.
Comment on lines 280 to 282
For more information, see [about_Hash_Tables](About/about_Hash_Tables.md),
[about_Session_Configurations](About/about_Session_Configurations.md), and
[about_Automatic_Variables](About/about_Automatic_Variables.md).
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file still contains a relative link using about/... (lowercase) earlier in the page (example section). There is no about directory here (only About/), so the link will be broken on case-sensitive systems; please update it to About/... for consistency with the other links in this section.

Copilot uses AI. Check for mistakes.
Comment on lines 280 to 282
For more information, see [about_Hash_Tables](about/about_Hash_Tables.md),
[about_Session_Configurations](About/about_Session_Configurations.md), and
[about_Automatic_Variables](about/about_Automatic_Variables.md).
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These relative links use about/... (lowercase), but this folder only contains About/ (capital A). On case-sensitive systems this will break the links; please update them to About/... (and consider fixing the same about/... link used earlier in the example section).

Suggested change
For more information, see [about_Hash_Tables](about/about_Hash_Tables.md),
[about_Session_Configurations](About/about_Session_Configurations.md), and
[about_Automatic_Variables](about/about_Automatic_Variables.md).
For more information, see [about_Hash_Tables](About/about_Hash_Tables.md),
[about_Session_Configurations](About/about_Session_Configurations.md), and
[about_Automatic_Variables](About/about_Automatic_Variables.md).

Copilot uses AI. Check for mistakes.
> [!IMPORTANT]
> Since this property contains data explicitly provided by the client, using this for security
> decisions could allow attackers to bypass authorization controls. Never use this data for trust
> decisions. Validate all user input when used for other application logic.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added IMPORTANT blockquote lines exceed the repo's markdownlint MD013 line-length limit (100 chars) for non-About topics. Please wrap the blockquote text onto more lines (keeping each quoted line under the limit) to avoid lint failures.

Suggested change
> decisions. Validate all user input when used for other application logic.
> decisions.
> Validate all user input when used for other application logic.

Copilot uses AI. Check for mistakes.
Comment thread reference/7.4/Microsoft.PowerShell.Core/New-PSSessionOption.md
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 76c0cb7:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/New-PSSessionOption.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/New-PSSessionOption.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Core/New-PSSessionOption.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Core/New-PSSessionOption.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit ebc99a3 into MicrosoftDocs:main Feb 10, 2026
5 checks passed
sdwheeler added a commit that referenced this pull request Feb 10, 2026
* Ad note about trusting ApplicationArguments data

* Add link to OWASP
@sdwheeler sdwheeler deleted the sdw-w552593-pssenderinfo branch February 10, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants